package com.zxc.common.enums;

public enum ExampleOneEnum {

    /**
     * 打卡记录状态
     */
    NOT_SIGN_OUT(0,"未签退"),
    ALREADY_SIGN_OUT(1,"已签退"),
    AUDIT(2,"审核中");

    private final int key;

    private final String value;

    ExampleOneEnum(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public static ExampleOneEnum getType(Integer key) {
        for (ExampleOneEnum c : ExampleOneEnum.values()) {
            if (c.getKey() == key) {
                return c;
            }
        }
        return null;
    }

    public static String getValuse(Integer key) {
        for (ExampleOneEnum c : ExampleOneEnum.values()) {
            if (c.getKey() == key) {
                return c.value;
            }
        }
        return null;
    }
}
